package com.mhf.domain;


//返回JSON结果

//建造者模式
//@Builder

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JSONResult {
    private Boolean success= true;
    private String msg = "操作成功";
    // 保存其他信息
    private Object resultObj;




    public JSONResult(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }



}
